# coding:utf-8
from odoo import models, fields, api, _


class ZfyTakeOutVariant(models.Model):
    _inherit = 'product.supplierinfo'

    @api.onchange('product_id')
    def _onchange_product_tmpl_id(self):
        self.product_tmpl_id = self.product_id.product_tmpl_id